<template>
	<view>
		<!-- 输入框 -->
		<view class="user-chat-bottom u-f-ac animated fadeInDown faster">
			<input type="text" placeholder="文明发言" v-model="text"/>
			<view class="icon iconfont icon-fabu u-f-ajc" @tap="submit"></view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text:""
			}
		},
		methods: {
			submit(){
				this.$emit("submit", this.text);
				this.text = "";
			}
		}
	}
</script>

<style scoped>
	.user-chat-bottom{
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		height: 120;
		padding: 20upx;
		background-color: #FFFFFF;
		border-top: 1upx solid #EEEEEE;
	}
	
	.user-chat-bottom>input{
		/* border: 1upx solid red; */
		flex: 1;
		margin-right: 20upx;
		padding: 10upx 20upx;
		border-radius: 10upx;
		background-color: #F7F7F7;
	}
	
	.user-chat-bottom>view{
		/* background: yellow; */
		width: 80upx;
		font-size: 45upx;
	}

</style>
